﻿@using Janus.Mes.VO;
@model IEnumerable<DefectCatHVO>
@{
    Layout = null;
    int i = 1;
    ViewBag.ViewTitle = "缺陷分类主表";
    var SearchParma = ViewData["SearchParma"] as DefectCatHVO ?? new DefectCatHVO();
}

<form id="pagerForm" method="get" action="BaseData/DefectCat/index?action=page&OpID=@ViewData["OperateID"]">
    <input type="hidden" name="pageNum" value="1" />
    <input type="hidden" name="numPerPage" value="@ViewData["pageSize"]" />
    <input type="hidden" name="RowCount" value="@ViewData["RowCount"]" />
    <input type="hidden" name="DefectCCode" value="@SearchParma.DefectCCode" />
    <input type="hidden" name="DefectCName" value="@SearchParma.DefectCName" />
</form>
<div class="pageHeader">
    <form onsubmit="return navTabSearch(this);" id="Form_@ViewData["CurrentController"]" action="BaseData/DefectCat/index?action=search&OpID=@ViewData["OperateID"]"
          method="post">
        <div class="searchBar">
            <table class="searchContent">
                <tr>
                    <td>
                        缺陷分类编码：
                    </td>
                    <td>
                        @Html.TextBox("DefectCCode", SearchParma.DefectCCode)
                    </td>
                    <td>
                        缺陷分类名称：
                    </td>
                    <td>
                        @Html.TextBox("DefectCName", SearchParma.DefectCName)
                    </td>
                    <td align="right">
                        <div class="subBar">
                            <ul>
                                <li>
                                    <div class="buttonActive">
                                        <div class="buttonContent">
                                            <button type="submit" name="submit">
                                                查询
                                            </button>
                                        </div>
                                    </div>
                                </li>
                            </ul>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</div>
<div class="pageContent">
    @Html.Partial("Buttons", ViewData["CurrentPageButtons"])
    <table class="treetable list" width="100%" layouth="95">
        <thead>
            <tr class="header">
                <th>序号</th>

                <th>
                    缺陷分类编码
                </th>

                <th>
                    缺陷分类名称
                </th>

                <th>
                    启用
                </th>

                <th>
                    备注
                </th>
            </tr>
        </thead>
        @foreach (var item in Model)
        {
            <tr target="DefectCatH_id" rel="@(item.DefectCCode)">
                <td>
                    @i
                </td>

                <td>@item.DefectCCode</td>

                <td>@item.DefectCName</td>

                <td>
                    <input type="checkbox" checked="@item.IsEnable" onclick="return false" />
                </td>

                <td>@item.Remark</td>
            </tr>
            i += 1;
        }
    </table>
</div>
@Html.Partial("PageBar")
